_EsdDynamicTransformationFunction = function($){


var _EsdDynamicTransformationScript={};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
// 定义跳转 使用jquery选择器语法
_EsdDynamicTransformationScript.navBlock.selector = {};


// 获取焦点添加显示边框
$(document).bind("keydown.keydown_9001", function (e) {
    if (e.shiftKey && e.keyCode == 20) {
        $("*").focus(function () {
            $(this).css({
                "outline": "2px dashed red"
            });
        });
        $("*").blur(function () {
            $(this).css({
                "outline": "0px black"
            });
        });
    }
});	

// 保证所有a标签都有href
$("a").each(function(){

	var aHref = this.href;
	if( aHref=="" || aHref==undefined ){
			$(this).attr("href","javascript:void(0)");
	}
	
	// 给a标签加title
	var aTitle = this.title;
	var aText = this.text;
	
	if( aTitle=="" || aTitle==undefined ){
		if( aText!="" || aText!=undefined ){
			$(this).attr("title",$.trim(aText));
		}
	}
	
});



// img
$("img").each(function(){
	// 给图片加alt/title
	var imgAlt = this.alt,
		imgTitle = this.title,
		imgSrc = this.src,
		parentText = this.parentElement.text;

	if(this.alt=="" || this.alt==undefined){
		if(imgTitle!="" && imgTitle!=undefined){
			$(this).attr("alt",imgTitle);
		}else if(parentText!="" && parentText!=undefined){
			$(this).attr("alt",parentText);
		}
	}
	if(this.title=="" || this.title==undefined){
		if(imgAlt!="" && imgAlt!=undefined){
			$(this).attr("title",imgAlt);
		}else if(parentText!="" && parentText!=undefined){
			$(this).attr("title",parentText);
		}
	}
})

$("img").each(function(){
	if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
		$(this).attr("title","图片");
		$(this).attr("alt","图片");
	}
})


$(".main .links select:eq(0)").attr("title","全国工信系统");
$(".main .links select:eq(1)").attr("title","省政府部门");
$(".main .links select:eq(2)").attr("title","市州工信局");

// 搜索
$("#searchform1 .txtinput").attr("title","请输入关键字");
$("#searchform1 .txtinput").attr("placeholder","请输入关键字");
$("#searchform1 .btninput").attr("title","搜索");



$('img[src="./gdtp/201607/W020180127635067315715.jpg"]').attr('title','春运保平安 真情满人间').attr('alt','春运保平安 真情满人间');$('img[src="./images/ws_ewm__03.jpg"]').attr('title','二维码').attr('alt','二维码');$('img[src="./sjtb_1/sjtb/201912/W020191209533855978773.png"]').attr('title','2019年1-10月各地区单位工业增加值能耗降低率图表').attr('alt','2019年1-10月各地区单位工业增加值能耗降低率图表');$('img[src="./gxdt1/tpxw_1/201912/W020191203345709781912.jpg"]').attr('title','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神').attr('alt','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神');$('img[src="./jhapp/images/P020190305675290548863.png"]').attr('title','中国建设银行标识').attr('alt','中国建设银行标识');
$('img[src="./images/zfwb1_tm_03.png"]').attr('title','政务微博').attr('alt','政务微博');
$('img[src="./images/tzxx_tm_03.png"]').attr('title','厅长信箱').attr('alt','厅长信箱');$('img[src="./gxdt1/spxw/201910/W020191017383328691211.png"]').attr('title','【奋进正当时】一汽红旗电子电气研究所：做自主创新的前行者').attr('alt','【奋进正当时】一汽红旗电子电气研究所：做自主创新的前行者');$('img[src="./cszz/syztzl_78448/201705/W020170525401314713405.jpg"]').attr('title','推进“两学一做”学习教育常态化制度化').attr('alt','推进“两学一做”学习教育常态化制度化');$('img[src="./sjtb/201912/W020191206389608323889.png"]').attr('title','2019年1-10月市州规模以上工业增加值.png').attr('alt','2019年1-10月市州规模以上工业增加值.png');$('img[src="./sjtb_1/sjtb/201912/W020191209530783583344.png"]').attr('title','2019年10月各地区工业用电量完成情况图表').attr('alt','2019年10月各地区工业用电量完成情况图表');$('img[src="./sjtb/201911/W020191126516373660164.png"]').attr('title','2019年1-9月各地区单位工业增加值能耗降低率.png').attr('alt','2019年1-9月各地区单位工业增加值能耗降低率.png');$('img[src="./sjtb/201912/W020191209526770242290.png"]').attr('title','2019年10月全省工业生产者出厂价格指数.png').attr('alt','2019年10月全省工业生产者出厂价格指数.png');$('img[src="./gxdt1/tpxw_1/201910/W020191025545888402840.png"]').attr('title','常务副省长吴靖平一行到省工信厅开展调研').attr('alt','常务副省长吴靖平一行到省工信厅开展调研');$('img[src="http://pucha.kaipuyun.cn/exposure/images/jiucuo.png?v=2200000021"]').attr('title','无效图片').attr('alt','无效图片');$('img[src="./gdtp/201607/W020160703483385376132.jpg"]').attr('title','机关建设').attr('alt','机关建设');$('img[src="./gxdt1/spxw/201912/W020191202382908233748.png"]').attr('title','磐石市微晶石加工项目投产').attr('alt','磐石市微晶石加工项目投产');$('img[src="./sjtb/201911/W020191126514931818645.png"]').attr('title','2019年9月各地区工业用电量完成情况.png').attr('alt','2019年9月各地区工业用电量完成情况.png');$('img[src="./sjtb/201912/W020191206386225036423.png"]').attr('title','2019年1-10月全省规模以上工业增加值.png').attr('alt','2019年1-10月全省规模以上工业增加值.png');$('img[src="./images/ws_logo1_03.jpg"]').attr('title','认真 精准 协作 攻坚').attr('alt','认真 精准 协作 攻坚');$('img[src="./gxdt1/tpxw_1/201912/W020191227337470269922.png"]').attr('title','吉林省工业技术研究院成立助推吉林工业转型升级').attr('alt','吉林省工业技术研究院成立助推吉林工业转型升级');
$('img[src="./images/zxzx_tm_03.png"]').attr('title','在线咨询').attr('alt','在线咨询');$('img[src="./gxdt1/spxw/201908/W020190826553835880924.jpg"]').attr('title','巴音朝鲁 景俊海视察中国-东北亚博览会展馆展区').attr('alt','巴音朝鲁 景俊海视察中国-东北亚博览会展馆展区');
$('img[src="./images/zwwb_tm_03.png"]').attr('title','政务微博').attr('alt','政务微博');$('img[src="//dcs.conac.cn/image/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./gdtp/201906/W020190618591987098581.jpg"]').attr('title','不忘初心牢记使命').attr('alt','不忘初心牢记使命');$('img[src="./gxdt1/tpxw_1/201912/W020191202399844301862.png"]').attr('title','厅领导到白城市重点企业调研').attr('alt','厅领导到白城市重点企业调研');$('img[src="./gxdt1/spxw/201910/W020191010565002457441.png"]').attr('title','【数说吉林70年】第一辆高级轿车 风卷“红旗”过大关').attr('alt','【数说吉林70年】第一辆高级轿车 风卷“红旗”过大关');$('img[src="http://sthjt.jl.gov.cn/images/beianicon_lv20180129.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./sspf/201906/W020190618598798732508.jpg"]').attr('title','不忘初心牢记使命').attr('alt','不忘初心牢记使命');$('img[src="./gdtp/201912/W020191225498498714214.jpg"]').attr('title','安全生产').attr('alt','安全生产');
$('img[src="./images/xwfbh_tm_03.png"]').attr('title','新闻发布会').attr('alt','新闻发布会');$('img[src="./gxdt1/tpxw_1/201909/W020190916357264008303.jpg"]').attr('title','吉林省工业经济高质量发展座谈会在长春召开').attr('alt','吉林省工业经济高质量发展座谈会在长春召开');
$('img[src="./images/jdts_tm_03.png"]').attr('title','监督投诉').attr('alt','监督投诉');$('img[src="./gxdt1/spxw/201911/W020191118391303832381.png"]').attr('title','景俊海与中国中铁公司总裁陈云举行会谈').attr('alt','景俊海与中国中铁公司总裁陈云举行会谈');
$('img[src="./images/group.png"]').attr('title','民营企业投诉').attr('alt','民营企业投诉');
$('img[src="./images/yjzj_tm_03.png"]').attr('title','意见征集').attr('alt','意见征集');$('img[src="./images/wxgzpt_03.png"]').attr('title','微信公众平台二维码').attr('alt','微信公众平台二维码');$('img[src="./gxdt1/tpxw_1/201909/W020190924574391849283.jpg"]').attr('title','十一届省委第七轮巡视第八巡视组进驻省工业和信息化厅').attr('alt','十一届省委第七轮巡视第八巡视组进驻省工业和信息化厅');$('img[src="./ttxw/201912/W020191203339471059601.jpg"]').attr('title','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神').attr('alt','厅领导到包保帮扶村调研脱贫攻坚工作并宣讲十九届四中全会精神');$('img[src="./gdtp/201612/W020170802416432672223.jpg"]').attr('title','双公示').attr('alt','双公示');$('img[src="./sjtb/201912/W020191209528397303695.png"]').attr('title','2019年10月全省工业生产者购进价格指数.png').attr('alt','2019年10月全省工业生产者购进价格指数.png');


if(location.href=="http://gxt.jl.gov.cn/hdjl/myqyts/"){
// 民营企业投诉信箱
	
	var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
	$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"姓名",title:"姓名"});
	$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
	$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"所属地区及企业名称",title:"所属地区及企业名称"});
	$(inputIframe).find("#frmData input:eq(3)").attr({placeholder:"电子邮箱",title:"电子邮箱"});
	$(inputIframe).find("#frmData input:eq(4)").attr({placeholder:"通迅地址",title:"通迅地址"});
	$(inputIframe).find("#frmData textarea").attr({placeholder:"投诉内容",title:"投诉内容"});
	
	$(inputIframe).find("#SubmitButton").attr("title","提交");	
	$(inputIframe).find("#ResetButton").attr("title","重置");	

	// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
	_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
	_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
	$("table:last").attr("id","footer");
	_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
	$("iframe:eq(0)").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("iframe:eq(0)").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}	

if(location.href=="http://gxt.jl.gov.cn/hdjl/zxzxx/zxzx.html"){
// 在线咨询
	
	$("#frmData input:eq(0)").attr({placeholder:"咨询人",title:"咨询人"});
	$("#frmData input:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
	$("#frmData input:eq(2)").attr({placeholder:"通讯地址",title:"通讯地址"});
	$("#frmData input:eq(3)").attr({placeholder:"电子邮箱",title:"电子邮箱"});
	$("#frmData input:eq(4)").attr({placeholder:"标题",title:"标题"});
	$("#frmData textarea").attr({placeholder:"咨询内容",title:"咨询内容"});
	
	$("#SubmitButton").attr("title","提交");	
	$("#ResetButton").attr("title","重置");	

	// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
	$(".wrap").attr("id","header");
	_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
	_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
	$(".footer").attr("id","footer");
	_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
	$(".zx_main").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$("table").addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}	

if(location.href=="http://gxt.jl.gov.cn/hdjl/tzxx_1/tz/"){
// 厅长信箱
	var inputIframe = document.getElementsByTagName("iframe")[0].contentWindow.document;
	var inputIframe1 = inputIframe.getElementsByTagName("iframe")[0].contentWindow.document;
	
	$(inputIframe1).find("#frmData input:eq(0)").attr({placeholder:"标题",title:"标题"});
	$(inputIframe1).find("#frmData input:eq(1)").attr({placeholder:"姓名",title:"姓名"});
	$(inputIframe1).find("#frmData input:eq(2)").attr({placeholder:"联系电话",title:"联系电话"});
	$(inputIframe1).find("#frmData input:eq(3)").attr({placeholder:"电子邮箱",title:"电子邮箱"});
	$(inputIframe1).find("#frmData input:eq(4)").attr({placeholder:"通讯地址",title:"通讯地址"});
	$(inputIframe1).find("#frmData .xdRichTextBox").attr({placeholder:"内容",title:"内容"});
	$(inputIframe1).find("#frmData input:eq(5)").attr({placeholder:"公开",title:"公开"});
	$(inputIframe1).find("#frmData input:eq(6)").attr({placeholder:"不公开",title:"不公开"});
	
	$(inputIframe1).find("#SubmitButton").attr("title","提交");	
	$(inputIframe1).find("#ResetButton").attr("title","重置");	

	// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
	$(".wrap").attr("id","header");
	_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
	$(".leftdh:eq(0)").attr("id","nav");
	_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
	$("table:last").attr("id","footer");
	_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
	$("table:first").attr("id","main");
	_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
	$(".leftdha").parent().parent().attr("id","left");
	_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
	$("#myiframe").parent().attr("id","right");
	_EsdDynamicTransformationScript.navBlock.selector.right = "#right";
	_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
	// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
	$(".leftdha").parent().parent().addClass("navBlock");
	$("#myiframe").parent().addClass("navBlock");
	_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
}	


if(location.href=="http://gxt.jl.gov.cn/" || location.href=="http://gxt.jl.gov.cn/index.html"){


															// 头--------------对应的内容--------整个，头+内容---------第几个-----内容中的第一个a-----------上一个的所有---------上一个的内容第一个a
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
    var keydownName = "keydown.navKeydown_" + keyDownNum;
    var keydownName2 = keydownName + "_1";
    $(focusObjSelector).focus(function () {
		if ($(listObjSelector).is(":hidden")) {
			$(mouseEventObjSelector).mouseover();
		}
        $(document).bind(keydownName, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                if (prevMouseEventObjSelector != "") {
					$(focusObjSelector).mouseout();
					$(prevMouseEventObjSelector+" .ws_xlk").mouseover();
					$(prevListObjsSelector).last().focus();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
					return false;
                } else{
					$(focusObjSelector).mouseout();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
				}
            } else if (e.keyCode == 9) {
				
            }
        });

    });
    $(focusObjSelector).blur(function () {
        $(document).unbind(keydownName);
    });
	
    $(listElementsSelector).last().focus(function () {
        $(document).bind(keydownName2, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            } else if (e.keyCode == 9) {
                $(mouseEventObjSelector).mouseout();
            }
        });
    });
    $(listElementsSelector).last().blur(function () {
        $(document).unbind(keydownName2);
    });
};


_EsdDynamicTransformationScript.navArray = new Array();

// 导航第一个栏目
_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);  // 放到数组里循环

// 导航第二个栏目
_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);  // 放到数组里循环


// 导航第三个栏目
_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = "#nav .clearfix li.nLi:eq(3) .ws_s1 a";


for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


_EsdDynamicTransformationScript.navArrayy = new Array();

// 导航第四个栏目
_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav4);  // 放到数组里循环

// 导航第五个栏目
_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav5.listObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav5.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav5.keyDownNum = 5; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav5.listElementsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav5.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav5.prevListObjsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav5);  // 放到数组里循环

// 导航第六个栏目
_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(6)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav6);  // 放到数组里循环



for(var i=0; i<_EsdDynamicTransformationScript.navArrayy.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArrayy[i].focusObjSelector, _EsdDynamicTransformationScript.navArrayy[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArrayy[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].keyDownNum, _EsdDynamicTransformationScript.navArrayy[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArrayy[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].prevListObjsSelector);
}


// 导航第三个的倒叙设置
$(_EsdDynamicTransformationScript.nav3.focusObjSelector).focus(function(){
	$(document).bind("keydown.navKeydown_3", function (e) {
		if(e.shiftKey&&e.keyCode==9){
			$(_EsdDynamicTransformationScript.nav2.focusObjSelector).mouseover();
			$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().focus();
			return false;
		}
	});
});

$(_EsdDynamicTransformationScript.nav3.focusObjSelector).blur(function(){
	$(document).unbind("keydown.navKeydown_3");
});
 
 
 
 
 
 
 

// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
	jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
	jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
	jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
	jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

// 通过方法赋值
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取


// 选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(0) a");  // 需要修改
																										// 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(1) a");  // 需要修改
																										// 这里的tab获取


// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

	// 当iframe都加载完毕后执行代码 使用setInterval
	_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){	
		
		if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined) 
				&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
			clearInterval(_EsdDynamicTransformationScript.iframeInterval);
			
			//通过方法赋值   
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);  
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2); 

		
		// 第一个标签 切换
		_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
			console.log("tab1获取到焦点");
			e = $(this).mouseover();
			$(document).bind("keydown.iframeKeydown_1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("tab1向回切换");
					_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
				} else if (e.keyCode == 9) {
					console.log("tab1继续切换到iframe上");
					_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
					$(_EsdDynamicTransformationScript.iframe1.self).focus();
					console.log(document.activeElement);
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.iframeTab1.blur(function () {
			$(document).unbind("keydown.iframeKeydown_1");
		});

		// 第一个标签的第一个链接
		$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
			console.log("第一个iframe的第一条获得焦点");
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第一个iframe的第一条向上切换");
					$(document).trigger("blur");
					_EsdDynamicTransformationScript.iframeTab1.focus();
					return false;
				} else if (e.keyCode == 9) {
					console.log("第一个iframe的第一条继续切换");
				}
			});
		});
		$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
		});

		// 第一个标签的最后一个链接
		$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
			console.log("第一个iframe的最后一条获得焦点");
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_last1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第一个iframe的最后一条向上切换");
				} else if (e.keyCode == 9) {
					console.log("第一个iframe的最后一条继续切换 到下一个标签");
					 $(document).trigger("blur");
					_EsdDynamicTransformationScript.iframeTab2.focus();
					return false;
				}
			});
		});
		$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_last1");
		});


		// 第二个标签切换
		_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
			console.log("tab2获取到焦点");
			e = $(this).mouseover();
			$(document).bind("keydown.iframeKeydown_2", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第二个标签向回切换 到第一个标签的最后一条");
					
					_EsdDynamicTransformationScript.iframeTab1.mouseover();
					$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
					return false;
				} else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
					$(_EsdDynamicTransformationScript.iframe2.self).focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.iframeTab2.blur(function () {
			$(document).unbind("keydown.iframeKeydown_2");
		});

		}
		
	}, 500);

}



// 轮播,右下角原点--鼠标点击触发情况

// 轮播：只获取轮播中一个a标签。
// 以文字a标签为主，图片a标签尽量不要，title不稳定

// 轮播前的标签
 _EsdDynamicTransformationScript.esdTagFrontNum1 = $(".itembox01 .slideTxtBox .hd ul li:eq(0) a");

// 文字A标签
 _EsdDynamicTransformationScript.esdTagANum1 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(0) a");
 _EsdDynamicTransformationScript.esdTagANum2 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(1) a");
 _EsdDynamicTransformationScript.esdTagANum3 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(2) a");
 _EsdDynamicTransformationScript.esdTagANum4 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(3) a");
 _EsdDynamicTransformationScript.esdTagANum5 = $(".itembox01 .slideTxtBox .bd .focusBox .pic li:eq(4) a");

// 原点
 _EsdDynamicTransformationScript.esdTagCircleNum1 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(0)");
 _EsdDynamicTransformationScript.esdTagCircleNum2 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(1)");
 _EsdDynamicTransformationScript.esdTagCircleNum3 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(2)");
 _EsdDynamicTransformationScript.esdTagCircleNum4 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(3)");
 _EsdDynamicTransformationScript.esdTagCircleNum5 = $(".itembox01 .slideTxtBox .bd .focusBox .num li:eq(4)");

// 第二个轮播前的标签(也就是第一个轮播后的标签)
 _EsdDynamicTransformationScript.esd2TagFrontNum1 = $(".ws_right_xw h1 a");


	// 轮播前的焦点
	_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
		$(this).mouseover();
		$(this).bind("keydown.keydown_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
				$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esdTagFrontNum1.mouseover();
				_EsdDynamicTransformationScript.esdTagCircleNum1.click();
				_EsdDynamicTransformationScript.esdTagANum1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
		$(this).unbind("keydown.keydown_0");
	});
	
	

	// 第一块
	_EsdDynamicTransformationScript.esdTagANum1.focus(function (e) {
		
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum2.click();
				_EsdDynamicTransformationScript.esdTagANum2.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum1.blur(function () {
		$(document).unbind("keydown.keydown_1");
	});

	// 第二块
	_EsdDynamicTransformationScript.esdTagANum2.focus(function (e) {
		
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum1.click();
				_EsdDynamicTransformationScript.esdTagANum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum3.click();
				_EsdDynamicTransformationScript.esdTagANum3.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esdTagANum3.focus(function (e) {
		
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum2.click();
				_EsdDynamicTransformationScript.esdTagANum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum4.click();
				_EsdDynamicTransformationScript.esdTagANum4.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});
	
	// 第四块
	_EsdDynamicTransformationScript.esdTagANum4.focus(function (e) {
		
		$(document).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum3.click();
				_EsdDynamicTransformationScript.esdTagANum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagCircleNum5.click();
				_EsdDynamicTransformationScript.esdTagANum5.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum4.blur(function () {
		$(document).unbind("keydown.keydown_4");
	});
	
	// 第五块
	_EsdDynamicTransformationScript.esdTagANum5.focus(function (e) {
		
		$(document).bind("keydown.keydown_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagCircleNum4.click();
				_EsdDynamicTransformationScript.esdTagANum4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagFrontNum1.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagANum5.blur(function () {
		$(document).unbind("keydown.keydown_5");
	});
	
	
	
	
	

	

// //第二个轮播,右下角原点--鼠标点击触发情况
//
// //第二个轮播：只获取轮播中一个a标签。
// //以文字a标签为主，图片a标签尽量不要，title不稳定
//
// //第二个轮播前的标签
// // _EsdDynamicTransformationScript.esd2TagFrontNum1 = $(".itembox01
// .slideTxtBox .hd ul li:eq(1) a");
//
// //文字A标签(需要重新采集)
// _EsdDynamicTransformationScript.esd2TagANum1 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(0) a");
// _EsdDynamicTransformationScript.esd2TagANum2 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(1) a");
// _EsdDynamicTransformationScript.esd2TagANum3 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(2) a");
// _EsdDynamicTransformationScript.esd2TagANum4 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(3) a");
// _EsdDynamicTransformationScript.esd2TagANum5 = $(".itembox01 .slideTxtBox .bd
// .focusBox1 .txt li:eq(4) a");
//
// //原点(需要重新采集)
// _EsdDynamicTransformationScript.esd2TagCircleNum1 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(0)");
// _EsdDynamicTransformationScript.esd2TagCircleNum2 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(1)");
// _EsdDynamicTransformationScript.esd2TagCircleNum3 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(2)");
// _EsdDynamicTransformationScript.esd2TagCircleNum4 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(3)");
// _EsdDynamicTransformationScript.esd2TagCircleNum5 = $(".itembox01
// .slideTxtBox .bd .focusBox1 .num li:eq(4)");
//
// //第二个轮播后的标签
// _EsdDynamicTransformationScript.esd2TagAfterNum1 = $(".ws_right_xw h1 a");
//
//
// //第二个轮播前的焦点
// _EsdDynamicTransformationScript.esd2TagFrontNum1.focus(function (e) {
// $(this).mouseover();
// $(document).bind("keydown.keydown_10", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esdTagFrontNum1.mouseover();
// _EsdDynamicTransformationScript.esdTagCircleNum5.click();
// _EsdDynamicTransformationScript.esdTagANum5.focus();
//				
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum1.click();
// _EsdDynamicTransformationScript.esd2TagANum1.focus();
// console.log(document.activeElement);
// return false;
// }
// });
// });
// _EsdDynamicTransformationScript.esd2TagFrontNum1.blur(function () {
// $(document).unbind("keydown.keydown_10");
// });
//	
//	
//
// //第一块
// _EsdDynamicTransformationScript.esd2TagANum1.focus(function (e) {
//		
// $(document).bind("keydown.keydown_11", function (e) {
// if(e.shiftKey&&e.keyCode==9){
//				
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum2.click();
// _EsdDynamicTransformationScript.esd2TagANum2.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum1.blur(function () {
// $(document).unbind("keydown.keydown_11");
// });
//
// //第二块
// _EsdDynamicTransformationScript.esd2TagANum2.focus(function (e) {
//		
// $(document).bind("keydown.keydown_12", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum1.click();
// _EsdDynamicTransformationScript.esd2TagANum1.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum3.click();
// _EsdDynamicTransformationScript.esd2TagANum3.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum2.blur(function () {
// $(document).unbind("keydown.keydown_12");
// });
//	
// //第三块
// _EsdDynamicTransformationScript.esd2TagANum3.focus(function (e) {
//		
// $(document).bind("keydown.keydown_13", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum2.click();
// _EsdDynamicTransformationScript.esd2TagANum2.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum4.click();
// _EsdDynamicTransformationScript.esd2TagANum4.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum3.blur(function () {
// $(document).unbind("keydown.keydown_13");
// });
//	
// //第四块
// _EsdDynamicTransformationScript.esd2TagANum4.focus(function (e) {
//		
// $(document).bind("keydown.keydown_14", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum3.click();
// _EsdDynamicTransformationScript.esd2TagANum3.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagCircleNum5.click();
// _EsdDynamicTransformationScript.esd2TagANum5.focus();
// console.log(document.activeElement);
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum4.blur(function () {
// $(document).unbind("keydown.keydown_14");
// });
//	
// //第五块
// _EsdDynamicTransformationScript.esd2TagANum5.focus(function (e) {
//		
// $(document).bind("keydown.keydown_15", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagCircleNum4.click();
// _EsdDynamicTransformationScript.esd2TagANum4.focus();
// return false;
// }else if (e.keyCode == 9) {
// _EsdDynamicTransformationScript.esd2TagAfterNum1.focus();
// return false;
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagANum5.blur(function () {
// $(document).unbind("keydown.keydown_15");
// });
//	
// //轮播后的焦点
// _EsdDynamicTransformationScript.esd2TagAfterNum1.focus(function (e) {
//		
// $(document).bind("keydown.keydown_16", function (e) {
// if(e.shiftKey&&e.keyCode==9){
// _EsdDynamicTransformationScript.esd2TagFrontNum1.focus();
// _EsdDynamicTransformationScript.esd2TagCircleNum5.click();
// _EsdDynamicTransformationScript.esd2TagANum5.focus();
// return false;
// }else if (e.keyCode == 9) {
//				
// }
// });
//
// });
// _EsdDynamicTransformationScript.esd2TagAfterNum1.blur(function () {
// $(document).unbind("keydown.keydown_16");
// });
	



	
	
	
	
	
	
	
	
	
	
	
	

// 第一部分

	// 二层

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num1 = $(".ws_slideTxtBox .bd ul:eq(0) a").length-1;
	 _EsdDynamicTransformationScript.num2 = $(".ws_slideTxtBox .bd ul:eq(2) a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esdTagNum1 = $(".ws_slideTxtBox .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esdTagNum2 = $(".ws_slideTxtBox .hd ul li:eq(1) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esdTagNum1Content1 = $(".ws_slideTxtBox .bd ul:eq(0) a:eq(0)");
	 _EsdDynamicTransformationScript.esdTagNum2Content1 = $(".ws_slideTxtBox .bd ul:eq(2) a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esdTagNum1ContentN = $(".ws_slideTxtBox .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
	 _EsdDynamicTransformationScript.esdTagNum2ContentN = $(".ws_slideTxtBox .bd ul:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esdTagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagNum1.blur(function () {
		
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esdTagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esdTagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	
	// 第二块
	_EsdDynamicTransformationScript.esdTagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagNum1.mouseover();
				_EsdDynamicTransformationScript.esdTagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});


// 第二部分
	
	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num4 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(0) ul li").length-1;
	 _EsdDynamicTransformationScript.num5 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(1) ul li").length-1;
	 _EsdDynamicTransformationScript.num6 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(2) ul li").length-1;
	 _EsdDynamicTransformationScript.num7 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(3) ul li").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd4TagNum1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esd4TagNum2 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(1) a");
	 _EsdDynamicTransformationScript.esd4TagNum3 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(2) a");
	 _EsdDynamicTransformationScript.esd4TagNum4 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .tit .hd ul li:eq(3) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(0) ul li a:eq(0)");
	 _EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(1) ul li a:eq(0)");
	 _EsdDynamicTransformationScript.esd4TagNum3Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(2) ul li a:eq(0)");
	 _EsdDynamicTransformationScript.esd4TagNum4Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(3) ul li a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num4+") a");
	 _EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num5+") a");
	 _EsdDynamicTransformationScript.esd4TagNum3ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(2) ul li:eq("+_EsdDynamicTransformationScript.num6+") a");
	 _EsdDynamicTransformationScript.esd4TagNum4ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(0) .bd .slidebox:eq(3) ul li:eq("+_EsdDynamicTransformationScript.num7+") a");
	
	// 第一块
	_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				console.log("1");
				_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
				console.log(document.activeElement);
				console.log("2");
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
		console.log("3");
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
		console.log("4");
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
		console.log("5");
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	// 第二块
	_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
		$(document).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
		$(document).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
		$(document).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum2ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd4TagNum3.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});

	_EsdDynamicTransformationScript.esd4TagNum3Content1.focus(function () {
		$(document).bind("keydown.keydown_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum3.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd4TagNum3Content1.blur(function () {
		$(document).unbind("keydown.keydown_s3");
	});

	_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus(function () {
		$(document).bind("keydown.keydown_e3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum3ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e3");
	});
	
	
	// 第四块
	_EsdDynamicTransformationScript.esd4TagNum4.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd4TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd4TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum4Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum4.blur(function () {
		$(document).unbind("keydown.keydown_4");
	});

// 第三部分

	// 三层

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num8 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(0) ul li").length-1;
	 _EsdDynamicTransformationScript.num9 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(1) ul li").length-1;
// _EsdDynamicTransformationScript.num10 = $(".main .itembox02 .itembox02l
// .wjfgbox:eq(1) .bd .slidebox:eq(2) ul li").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd5TagNum1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .tit .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esd5TagNum2 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .tit .hd ul li:eq(1) a");
	 _EsdDynamicTransformationScript.esd5TagNum3 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .tit .hd ul li:eq(2) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd5TagNum1Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(0) ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esd5TagNum2Content1 = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(1) ul li:eq(0) a");
// _EsdDynamicTransformationScript.esd5TagNum3Content1 = $(".main .itembox02
// .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(2) ul li:eq(0) a");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd5TagNum1ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(0) ul li:eq("+_EsdDynamicTransformationScript.num8+") a");
	 _EsdDynamicTransformationScript.esd5TagNum2ContentN = $(".main .itembox02 .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(1) ul li:eq("+_EsdDynamicTransformationScript.num9+") a");
// _EsdDynamicTransformationScript.esd5TagNum3ContentN = $(".main .itembox02
// .itembox02l .wjfgbox:eq(1) .bd .slidebox:eq(2) ul
// li:eq("+_EsdDynamicTransformationScript.num10+") a");
	
	// 外链接iframe之后的一个a标签
	_EsdDynamicTransformationScript.esd5TagNum4Content1 = $(".itembox02 .itembox02l .ws_hdjl .tzxx  a");
	
	
	// 第一块
	_EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd5TagNum1.blur(function () {
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	// 第二块
	_EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd5TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd5TagNum2Content1.focus(function () {
		$(document).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd5TagNum2Content1.blur(function () {
		$(document).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus(function () {
		$(document).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum3.focus();
				_EsdDynamicTransformationScript.esd5TagNum3.mouseover();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum2ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd5TagNum3.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum4Content1.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd5TagNum3.blur(function () {
		$(document).unbind("keydown.keydown_3");
	});

// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header .top").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$(".main .itembox02 .left").attr("id","left");
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
$(".main .itembox02 .right").attr("id","right");
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main .itembox01 .left:eq(0)").addClass("navBlock");
$(".main .itembox01 .right").addClass("navBlock");
$(".main .itembox02 .left .wjfgbox").addClass("navBlock");
$(".main .itembox02 .left .ws_logo").addClass("navBlock");
$(".main .itembox02 .left .wjfgbox").addClass("navBlock");
$(".main .itembox02 .left .ws_hdjl").addClass("navBlock");
$(".main .itembox02 .right .zyxxzzbox").addClass("navBlock");
$(".main .itembox02 .right .rdzt").addClass("navBlock");
$(".main .itembox02 .right .xxgkzl").addClass("navBlock");
$(".main .itembox02 .right .xxgkzlb").addClass("navBlock");
$(".main .itembox02 .right .zzsjk1:eq(0)").addClass("navBlock");
$(".main .itembox02 .right .zzsjk1:eq(1)").addClass("navBlock");
$(".main .links").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
	
	
	
	
}

if(location.href=="http://gxt.jl.gov.cn/gxdt1/"){
// 工信动态




															// 头--------------对应的内容--------整个，头+内容---------第几个-----内容中的第一个a-----------上一个的所有---------上一个的内容第一个a
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
    var keydownName = "keydown.navKeydown_" + keyDownNum;
    var keydownName2 = keydownName + "_1";
    $(focusObjSelector).focus(function () {
		if ($(listObjSelector).is(":hidden")) {
			$(mouseEventObjSelector).mouseover();
		}
        $(document).bind(keydownName, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                if (prevMouseEventObjSelector != "") {
					$(focusObjSelector).mouseout();
					$(prevMouseEventObjSelector+" .ws_xlk").mouseover();
					$(prevListObjsSelector).last().focus();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
					return false;
                } else{
					$(focusObjSelector).mouseout();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
				}
            } else if (e.keyCode == 9) {
				
            }
        });

    });
    $(focusObjSelector).blur(function () {
        $(document).unbind(keydownName);
    });
	
    $(listElementsSelector).last().focus(function () {
        $(document).bind(keydownName2, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            } else if (e.keyCode == 9) {
                $(mouseEventObjSelector).mouseout();
            }
        });
    });
    $(listElementsSelector).last().blur(function () {
        $(document).unbind(keydownName2);
    });
};


_EsdDynamicTransformationScript.navArray = new Array();

// 导航第一个栏目
_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);  // 放到数组里循环

// 导航第二个栏目
_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);  // 放到数组里循环


// 导航第三个栏目
_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = "#nav .clearfix li.nLi:eq(3) .ws_s1 a";


for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


_EsdDynamicTransformationScript.navArrayy = new Array();

// 导航第四个栏目
_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav4);  // 放到数组里循环

// 导航第五个栏目
_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav5.listObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav5.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav5.keyDownNum = 5; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav5.listElementsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav5.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav5.prevListObjsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav5);  // 放到数组里循环

// 导航第六个栏目
_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(6)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav6);  // 放到数组里循环

// 导航后的第一个a
_EsdDynamicTransformationScript.esdNavTag1 = $(".main a:eq(0)");


for(var i=0; i<_EsdDynamicTransformationScript.navArrayy.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArrayy[i].focusObjSelector, _EsdDynamicTransformationScript.navArrayy[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArrayy[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].keyDownNum, _EsdDynamicTransformationScript.navArrayy[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArrayy[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].prevListObjsSelector);
}


// 导航第三个的倒叙设置
$(_EsdDynamicTransformationScript.nav3.focusObjSelector).focus(function(){
	$(this).bind("keydown.navKeydown0_3", function (e) {
		if(e.shiftKey&&e.keyCode==9){
			$(_EsdDynamicTransformationScript.nav2.focusObjSelector).mouseover();
			$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().focus();
			return false;
		}
	});
});

$(_EsdDynamicTransformationScript.nav3.focusObjSelector).blur(function(){
	$(this).unbind("keydown.navKeydown0_3");
});
 






// 第一部分

	// 二层

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num1 = $(".ws_slideTxtBox .bd ul:eq(0) a").length-1;
	 _EsdDynamicTransformationScript.num2 = $(".ws_slideTxtBox .bd ul:eq(2) a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd1TagNum1 = $(".ws_slideTxtBox .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esd1TagNum2 = $(".ws_slideTxtBox .hd ul li:eq(1) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".ws_slideTxtBox .bd ul:eq(0) a:eq(0)");
	 _EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".ws_slideTxtBox .bd ul:eq(2) a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".ws_slideTxtBox .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
	 _EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".ws_slideTxtBox .bd ul:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
		
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	
	// 第二块
	_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});



// 轮播前的标签
 _EsdDynamicTransformationScript.esd2TagFrontNum1 = $(".main .itembox02 .gxdt .tit a:eq(0)");

// 文字A标签
 _EsdDynamicTransformationScript.esd2TagANum1 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(0) a");
 _EsdDynamicTransformationScript.esd2TagANum2 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(1) a");
 _EsdDynamicTransformationScript.esd2TagANum3 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(2) a");
 _EsdDynamicTransformationScript.esd2TagANum4 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(3) a");
 _EsdDynamicTransformationScript.esd2TagANum5 = $(".main .itembox02 .gxdt .bm .left .txt ul li:eq(4) a");

// 原点
 _EsdDynamicTransformationScript.esd2TagCircleNum1 = $(".main .itembox02 .gxdt .bm .left .num li:eq(0)");
 _EsdDynamicTransformationScript.esd2TagCircleNum2 = $(".main .itembox02 .gxdt .bm .left .num li:eq(1)");
 _EsdDynamicTransformationScript.esd2TagCircleNum3 = $(".main .itembox02 .gxdt .bm .left .num li:eq(2)");
 _EsdDynamicTransformationScript.esd2TagCircleNum4 = $(".main .itembox02 .gxdt .bm .left .num li:eq(3)");
 _EsdDynamicTransformationScript.esd2TagCircleNum5 = $(".main .itembox02 .gxdt .bm .left .num li:eq(4)");

// 轮播后的标签
 _EsdDynamicTransformationScript.esd2TagFrontNum2 = $(".main .itembox02 .gxdt .bm .right a:eq(0)");


	// 轮播前的焦点
	_EsdDynamicTransformationScript.esd2TagFrontNum1.focus(function (e) {
		$(this).mouseover();
		$(this).bind("keydown.keydown2_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
				$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd2TagFrontNum1.mouseover();
				_EsdDynamicTransformationScript.esd2TagCircleNum1.click();
				_EsdDynamicTransformationScript.esd2TagANum1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd2TagFrontNum1.blur(function () {
		$(this).unbind("keydown.keydown2_0");
	});
	
	

	// 第一块
	_EsdDynamicTransformationScript.esd2TagANum1.focus(function (e) {
		
		$(document).bind("keydown.keydown2_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagFrontNum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagCircleNum2.click();
				_EsdDynamicTransformationScript.esd2TagANum2.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagANum1.blur(function () {
		$(document).unbind("keydown.keydown2_1");
	});

	// 第二块
	_EsdDynamicTransformationScript.esd2TagANum2.focus(function (e) {
		
		$(document).bind("keydown.keydown2_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagCircleNum1.click();
				_EsdDynamicTransformationScript.esd2TagANum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagCircleNum3.click();
				_EsdDynamicTransformationScript.esd2TagANum3.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagANum2.blur(function () {
		$(document).unbind("keydown.keydown2_2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd2TagANum3.focus(function (e) {
		
		$(document).bind("keydown.keydown2_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagCircleNum2.click();
				_EsdDynamicTransformationScript.esd2TagANum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagCircleNum4.click();
				_EsdDynamicTransformationScript.esd2TagANum4.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagANum3.blur(function () {
		$(document).unbind("keydown.keydown2_3");
	});
	
	// 第四块
	_EsdDynamicTransformationScript.esd2TagANum4.focus(function (e) {
		
		$(document).bind("keydown.keydown2_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagCircleNum3.click();
				_EsdDynamicTransformationScript.esd2TagANum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
				_EsdDynamicTransformationScript.esd2TagANum5.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagANum4.blur(function () {
		$(document).unbind("keydown.keydown2_4");
	});
	
	// 第五块
	_EsdDynamicTransformationScript.esd2TagANum5.focus(function (e) {
		
		$(document).bind("keydown.keydown2_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagCircleNum4.click();
				_EsdDynamicTransformationScript.esd2TagANum4.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagFrontNum2.focus();
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagANum5.blur(function () {
		$(document).unbind("keydown.keydown2_5");
	});
	
// 轮播后的焦点
	
	_EsdDynamicTransformationScript.esd2TagFrontNum2.focus(function (e) {
		
		$(document).bind("keydown.keydown2_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagCircleNum5.click();
				_EsdDynamicTransformationScript.esd2TagANum5.focus();
				return false;
			}else if (e.keyCode == 9) {

			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagFrontNum2.blur(function () {
		$(document).unbind("keydown.keydown2_6");
	});
	
	
	


// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
	jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
	jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
	jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
	jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

// 通过方法赋值
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取


// 选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(0) a");  // 需要修改
																										// 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $(".itembox02r .zyxxzzbox .zz .xtit .hd ul li:eq(1) a");  // 需要修改
																										// 这里的tab获取


// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

	// 当iframe都加载完毕后执行代码 使用setInterval
	_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){	
		
		if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined) 
				&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
			clearInterval(_EsdDynamicTransformationScript.iframeInterval);
			
			//通过方法赋值   
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);  
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2); 

			
			// 第一个标签 切换
			_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
				console.log("tab1获取到焦点");
				e = $(this).mouseover();
				$(this).bind("keydown.iframeKeydown_1", function (e) {
					if (e.shiftKey && e.keyCode == 9) {
						console.log("tab1向回切换");
						$(this).trigger("blur");
					} else if (e.keyCode == 9) {
						console.log("tab1继续切换到iframe上");
						$(this).trigger("blur");
						$(_EsdDynamicTransformationScript.iframe1.self).focus();
						console.log(document.activeElement);
						return false;
					}
				});
			});
			_EsdDynamicTransformationScript.iframeTab1.blur(function () {
				$(this).unbind("keydown.iframeKeydown_1");
			});

			// 第一个标签的第一个链接
			$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
				console.log("第一个iframe的第一条获得焦点");
				$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
					if (e.shiftKey && e.keyCode == 9) {
						console.log("第一个iframe的第一条向上切换");
						$(this).trigger("blur");
						_EsdDynamicTransformationScript.iframeTab1.focus();
						return false;
					} else if (e.keyCode == 9) {
						console.log("第一个iframe的第一条继续切换");
					}
				});
			});
			$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
				$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
			});

			// 第一个标签的最后一个链接
			$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
				console.log("第一个iframe的最后一条获得焦点");
				$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_last1", function (e) {
					if (e.shiftKey && e.keyCode == 9) {
						console.log("第一个iframe的最后一条向上切换");
					} else if (e.keyCode == 9) {
						console.log("第一个iframe的最后一条继续切换 到下一个标签");
						 $(this).trigger("blur");
						_EsdDynamicTransformationScript.iframeTab2.focus();
						return false;
					}
				});
			});
			$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
				$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_last1");
			});


			// 第二个标签切换
			_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
				console.log("tab2获取到焦点");
				e = $(this).mouseover();
				$(this).bind("keydown.iframeKeydown_2", function (e) {
					if (e.shiftKey && e.keyCode == 9) {
						console.log("第二个标签向回切换 到第一个标签的最后一条");
						
						_EsdDynamicTransformationScript.iframeTab1.mouseover();
						$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
						return false;
					} else if (e.keyCode == 9) {
						$(this).trigger("blur");
						$(_EsdDynamicTransformationScript.iframe2.self).focus();
						console.log(document.activeElement);
						return false;
					}
				});

			});
			_EsdDynamicTransformationScript.iframeTab2.blur(function () {
				$(this).unbind("keydown.iframeKeydown_2");
			});

		}
		
	}, 500);

}

// 三级选项卡

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num4 = $(".itembox02l .nynewbox .bd .slidebox:eq(0) ul a").length-1;
	 _EsdDynamicTransformationScript.num5 = $(".itembox02l .nynewbox .bd .slidebox:eq(1) ul a").length-1;
	 _EsdDynamicTransformationScript.num6 = $(".itembox02l .nynewbox .bd .slidebox:eq(2) ul a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd3TagNum1 = $(".itembox02l .nynewbox .tit .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esd3TagNum2 = $(".itembox02l .nynewbox .tit .hd ul li:eq(1) a");
	 _EsdDynamicTransformationScript.esd3TagNum3 = $(".itembox02l .nynewbox .tit .hd ul li:eq(2) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".itembox02l .nynewbox .bd .slidebox:eq(0) ul a:eq(0)");
	 _EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".itembox02l .nynewbox .bd .slidebox:eq(1) ul a:eq(0)");
	 _EsdDynamicTransformationScript.esd3TagNum3Content1 = $(".itembox02l .nynewbox .bd .slidebox:eq(2) ul a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".itembox02l .nynewbox .bd .slidebox:eq(0) ul a:eq("+_EsdDynamicTransformationScript.num4+")");
	 _EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".itembox02l .nynewbox .bd .slidebox:eq(1) ul a:eq("+_EsdDynamicTransformationScript.num5+")");
	 _EsdDynamicTransformationScript.esd3TagNum3ContentN = $(".itembox02l .nynewbox .bd .slidebox:eq(2) ul a:eq("+_EsdDynamicTransformationScript.num6+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown3_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
		$(this).unbind("keydown.keydown3_1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown3_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown3_s1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown3_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(this).trigger("blur");
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown3_e1");
	});
	// 第二块
	_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
		console.log(2);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown3_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
		$(this).unbind("keydown.keydown3_2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown3_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
			}
		});
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown3_s2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown3_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(this).trigger("blur");
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown3_e2");
	});
	
	// 第三块
	_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown3_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
		$(this).unbind("keydown.keydown3_3");
	});
	
	_EsdDynamicTransformationScript.esd3TagNum3Content1.focus(function () {
		$(this).bind("keydown.keydown3_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum3.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
			}
		});
	});

	_EsdDynamicTransformationScript.esd3TagNum3Content1.blur(function () {
		$(this).unbind("keydown.keydown3_s3");
	});



// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$(".main .itembox02>.left").attr("id","left");
_EsdDynamicTransformationScript.navBlock.selector.left = "#left";
$(".main .itembox02>.right").attr("id","right");
_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main .itembox02>.left>div").addClass("navBlock");
$(".main .itembox02>.right>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个




}

if(location.href=="http://gxt.jl.gov.cn/ggfw/"){
// 公共服务




															// 头--------------对应的内容--------整个，头+内容---------第几个-----内容中的第一个a-----------上一个的所有---------上一个的内容第一个a
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
    var keydownName = "keydown.navKeydown_" + keyDownNum;
    var keydownName2 = keydownName + "_1";
    $(focusObjSelector).focus(function () {
		if ($(listObjSelector).is(":hidden")) {
			$(mouseEventObjSelector).mouseover();
		}
        $(document).bind(keydownName, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                if (prevMouseEventObjSelector != "") {
					$(focusObjSelector).mouseout();
					$(prevMouseEventObjSelector+" .ws_xlk").mouseover();
					$(prevListObjsSelector).last().focus();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
					return false;
                } else{
					$(focusObjSelector).mouseout();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
				}
            } else if (e.keyCode == 9) {
				
            }
        });

    });
    $(focusObjSelector).blur(function () {
        $(document).unbind(keydownName);
    });
	
    $(listElementsSelector).last().focus(function () {
        $(document).bind(keydownName2, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            } else if (e.keyCode == 9) {
                $(mouseEventObjSelector).mouseout();
            }
        });
    });
    $(listElementsSelector).last().blur(function () {
        $(document).unbind(keydownName2);
    });
};


_EsdDynamicTransformationScript.navArray = new Array();

// 导航第一个栏目
_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);  // 放到数组里循环

// 导航第二个栏目
_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);  // 放到数组里循环


// 导航第三个栏目
_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = "#nav .clearfix li.nLi:eq(3) .ws_s1 a";


for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


_EsdDynamicTransformationScript.navArrayy = new Array();

// 导航第四个栏目
_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav4);  // 放到数组里循环

// 导航第五个栏目
_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav5.listObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav5.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav5.keyDownNum = 5; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav5.listElementsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav5.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav5.prevListObjsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav5);  // 放到数组里循环

// 导航第六个栏目
_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(6)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav6);  // 放到数组里循环

// 导航后的第一个a
_EsdDynamicTransformationScript.esdNavTag1 = $(".main a:eq(0)");


for(var i=0; i<_EsdDynamicTransformationScript.navArrayy.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArrayy[i].focusObjSelector, _EsdDynamicTransformationScript.navArrayy[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArrayy[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].keyDownNum, _EsdDynamicTransformationScript.navArrayy[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArrayy[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].prevListObjsSelector);
}


// 导航第三个的倒叙设置
$(_EsdDynamicTransformationScript.nav3.focusObjSelector).focus(function(){
	$(this).bind("keydown.navKeydown0_3", function (e) {
		if(e.shiftKey&&e.keyCode==9){
			$(_EsdDynamicTransformationScript.nav2.focusObjSelector).mouseover();
			$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().focus();
			return false;
		}
	});
});

$(_EsdDynamicTransformationScript.nav3.focusObjSelector).blur(function(){
	$(this).unbind("keydown.navKeydown0_3");
});
 






// 第一部分

	// 二层

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num1 = $(".ws_slideTxtBox .bd ul:eq(0) a").length-1;
	 _EsdDynamicTransformationScript.num2 = $(".ws_slideTxtBox .bd ul:eq(2) a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd1TagNum1 = $(".ws_slideTxtBox .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esd1TagNum2 = $(".ws_slideTxtBox .hd ul li:eq(1) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".ws_slideTxtBox .bd ul:eq(0) a:eq(0)");
	 _EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".ws_slideTxtBox .bd ul:eq(2) a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".ws_slideTxtBox .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
	 _EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".ws_slideTxtBox .bd ul:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
		
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	
	// 第二块
	_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});




// 二级选项卡

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num4 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(1) a").length-1;
	 _EsdDynamicTransformationScript.num5 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(2) a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esd3TagNum1 = $(".bsfw_ly .wjfgbox .tit .hd ul li:eq(1) a");
	 _EsdDynamicTransformationScript.esd3TagNum2 = $(".bsfw_ly .wjfgbox .tit .hd ul li:eq(2) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1Content1 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(1) a:eq(0)");
	 _EsdDynamicTransformationScript.esd3TagNum2Content1 = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(2) a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1ContentN = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(1) a:eq("+_EsdDynamicTransformationScript.num4+")");
	 _EsdDynamicTransformationScript.esd3TagNum2ContentN = $(".bsfw_ly .wjfgbox .bd .slidebox:eq(2) a:eq("+_EsdDynamicTransformationScript.num5+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown3_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
		$(this).unbind("keydown.keydown3_1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown3_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum1.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown3_s1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown3_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(this).trigger("blur");
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown3_e1");
	});
	
	
	// 第二块
	_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown3_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
		$(this).unbind("keydown.keydown3_2");
	});
	
	_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown3_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
// $(this).trigger("blur");
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}else if (e.keyCode == 9) {
				$(this).trigger("blur");
			}
		});
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown3_s2");
	});



// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main .rdfw_ly >div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个


}

if(location.href=="http://gxt.jl.gov.cn/xxgk/jgzn/" || location.href=="http://gxt.jl.gov.cn/hdjl/" || location.href=="http://gxt.jl.gov.cn/sjtb_1/" || location.href=="http://gxt.jl.gov.cn/gdtp/"){
// 导航的其它二级页

															// 头--------------对应的内容--------整个，头+内容---------第几个-----内容中的第一个a-----------上一个的所有---------上一个的内容第一个a
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
    var keydownName = "keydown.navKeydown_" + keyDownNum;
    var keydownName2 = keydownName + "_1";
    $(focusObjSelector).focus(function () {
		if ($(listObjSelector).is(":hidden")) {
			$(mouseEventObjSelector).mouseover();
		}
        $(document).bind(keydownName, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
                if (prevMouseEventObjSelector != "") {
					$(focusObjSelector).mouseout();
					$(prevMouseEventObjSelector+" .ws_xlk").mouseover();
					$(prevListObjsSelector).last().focus();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
					return false;
                } else{
					$(focusObjSelector).mouseout();
					$(document).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
				}
            } else if (e.keyCode == 9) {
				
            }
        });

    });
    $(focusObjSelector).blur(function () {
        $(document).unbind(keydownName);
    });
	
    $(listElementsSelector).last().focus(function () {
        $(document).bind(keydownName2, function (e) {
            if (e.shiftKey && e.keyCode == 9) {
            } else if (e.keyCode == 9) {
                $(mouseEventObjSelector).mouseout();
            }
        });
    });
    $(listElementsSelector).last().blur(function () {
        $(document).unbind(keydownName2);
    });
};


_EsdDynamicTransformationScript.navArray = new Array();

// 导航第一个栏目
_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);  // 放到数组里循环

// 导航第二个栏目
_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(2)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = "#nav .clearfix li.nLi:eq(2) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(1)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = "#nav .clearfix li.nLi:eq(1) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);  // 放到数组里循环


// 导航第三个栏目
_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = "#nav .clearfix li.nLi:eq(3) .ws_s1 a";


for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


_EsdDynamicTransformationScript.navArrayy = new Array();

// 导航第四个栏目
_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = ""; // 上一个相邻的鼠标事件(mouseover)的元素
																		// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav4);  // 放到数组里循环

// 导航第五个栏目
_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav5.listObjSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav5.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav5.keyDownNum = 5; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav5.listElementsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav5.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(4)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav5.prevListObjsSelector = "#nav .clearfix li.nLi:eq(4) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav5);  // 放到数组里循环

// 导航第六个栏目
_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_s1 a"; // 按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk"; // 按tab聚焦后展示列表选择器
																								// 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = "#nav .clearfix li.nLi:eq(6)"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识 最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = "#nav .clearfix li.nLi:eq(6) .ws_xlk a"; // 按tab聚焦后
																										// 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = "#nav .clearfix li.nLi:eq(5)"; // 上一个相邻的鼠标事件(mouseover)的元素
																								// 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = "#nav .clearfix li.nLi:eq(5) .ws_xlk a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav6);  // 放到数组里循环

// 导航后的第一个a
_EsdDynamicTransformationScript.esdNavTag1 = $(".main a:eq(0)");


for(var i=0; i<_EsdDynamicTransformationScript.navArrayy.length; i++){
	_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArrayy[i].focusObjSelector, _EsdDynamicTransformationScript.navArrayy[i].listObjSelector, 
		_EsdDynamicTransformationScript.navArrayy[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].keyDownNum, _EsdDynamicTransformationScript.navArrayy[i].listElementsSelector,
		_EsdDynamicTransformationScript.navArrayy[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].prevListObjsSelector);
}


// 导航第三个的倒叙设置
$(_EsdDynamicTransformationScript.nav3.focusObjSelector).focus(function(){
	$(this).bind("keydown.navKeydown0_3", function (e) {
		if(e.shiftKey&&e.keyCode==9){
			$(_EsdDynamicTransformationScript.nav2.focusObjSelector).mouseover();
			$(_EsdDynamicTransformationScript.nav2.listElementsSelector).last().focus();
			return false;
		}
	});
});

$(_EsdDynamicTransformationScript.nav3.focusObjSelector).blur(function(){
	$(this).unbind("keydown.navKeydown0_3");
});
 
// 导航之后的第一个a
_EsdDynamicTransformationScript.esdNavTag1.focus(function (e) {
	$(this).bind("keydown.keydown0_0", function (e) {
		if(e.shiftKey&&e.keyCode==9){
			$(_EsdDynamicTransformationScript.nav6.focusObjSelector).mouseover();
			$(_EsdDynamicTransformationScript.nav6.listElementsSelector).last().focus();
			return false;
		}else if (e.keyCode == 9) {

		}
	});
});
_EsdDynamicTransformationScript.esdNavTag1.blur(function () {
	$(this).unbind("keydown.keydown0_0");
});






// 第一部分

	// 二层

	// 各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num1 = $(".ws_slideTxtBox .bd ul:eq(0) a").length-1;
	 _EsdDynamicTransformationScript.num2 = $(".ws_slideTxtBox .bd ul:eq(2) a").length-1;
	
	// 各个选项名称
	 _EsdDynamicTransformationScript.esdTagNum1 = $(".ws_slideTxtBox .hd ul li:eq(0) a");
	 _EsdDynamicTransformationScript.esdTagNum2 = $(".ws_slideTxtBox .hd ul li:eq(1) a");
	
	// 各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esdTagNum1Content1 = $(".ws_slideTxtBox .bd ul:eq(0) a:eq(0)");
	 _EsdDynamicTransformationScript.esdTagNum2Content1 = $(".ws_slideTxtBox .bd ul:eq(2) a:eq(0)");
	
	// 各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esdTagNum1ContentN = $(".ws_slideTxtBox .bd ul:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
	 _EsdDynamicTransformationScript.esdTagNum2ContentN = $(".ws_slideTxtBox .bd ul:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");
	
	// 第一块
	_EsdDynamicTransformationScript.esdTagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagNum1.blur(function () {
		
		$(document).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esdTagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esdTagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esdTagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_e1");
	});
	
	// 第二块
	_EsdDynamicTransformationScript.esdTagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdTagNum1.mouseover();
				_EsdDynamicTransformationScript.esdTagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdTagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esdTagNum2.blur(function () {
		$(document).unbind("keydown.keydown_2");
	});




// 主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$(".header").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";

_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".footer").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";
$(".main").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
// 给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".main>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个




}
	
	
	

/**
 * 说明： 区域跳转+区块跳转
 * 区域跳转包括：头部区域（top），导航区域(nav)，主要区域(main){左侧区域，中间区域，右侧区域}，底部区域(footer)。
 * 区块跳转包括：也叫栏目跳转，是对主要区域(main)内进行栏目的细分，用于盲人快速找到感兴趣的栏目。
 * 
 * 
 */
// 加载必要支持库，嵌入了mousetrap代码，如需升级版本删除下载新版本后单独加载即可
/* mousetrap v1.6.5 craig.is/killing/mice */
(function(q,u,c){function v(a,b,g){a.addEventListener?a.addEventListener(b,g,!1):a.attachEvent("on"+b,g)}function z(a){if("keypress"==a.type){var b=String.fromCharCode(a.which);a.shiftKey||(b=b.toLowerCase());return b}return n[a.which]?n[a.which]:r[a.which]?r[a.which]:String.fromCharCode(a.which).toLowerCase()}function F(a){var b=[];a.shiftKey&&b.push("shift");a.altKey&&b.push("alt");a.ctrlKey&&b.push("ctrl");a.metaKey&&b.push("meta");return b}function w(a){return"shift"==a||"ctrl"==a||"alt"==a||
"meta"==a}function A(a,b){var g,d=[];var e=a;"+"===e?e=["+"]:(e=e.replace(/\+{2}/g,"+plus"),e=e.split("+"));for(g=0;g<e.length;++g){var m=e[g];B[m]&&(m=B[m]);b&&"keypress"!=b&&C[m]&&(m=C[m],d.push("shift"));w(m)&&d.push(m)}e=m;g=b;if(!g){if(!p){p={};for(var c in n)95<c&&112>c||n.hasOwnProperty(c)&&(p[n[c]]=c)}g=p[e]?"keydown":"keypress"}"keypress"==g&&d.length&&(g="keydown");return{key:m,modifiers:d,action:g}}function D(a,b){return null===a||a===u?!1:a===b?!0:D(a.parentNode,b)}function d(a){function b(a){a=
a||{};var b=!1,l;for(l in p)a[l]?b=!0:p[l]=0;b||(x=!1)}function g(a,b,t,f,g,d){var l,E=[],h=t.type;if(!k._callbacks[a])return[];"keyup"==h&&w(a)&&(b=[a]);for(l=0;l<k._callbacks[a].length;++l){var c=k._callbacks[a][l];if((f||!c.seq||p[c.seq]==c.level)&&h==c.action){var e;(e="keypress"==h&&!t.metaKey&&!t.ctrlKey)||(e=c.modifiers,e=b.sort().join(",")===e.sort().join(","));e&&(e=f&&c.seq==f&&c.level==d,(!f&&c.combo==g||e)&&k._callbacks[a].splice(l,1),E.push(c))}}return E}function c(a,b,c,f){k.stopCallback(b,
b.target||b.srcElement,c,f)||!1!==a(b,c)||(b.preventDefault?b.preventDefault():b.returnValue=!1,b.stopPropagation?b.stopPropagation():b.cancelBubble=!0)}function e(a){"number"!==typeof a.which&&(a.which=a.keyCode);var b=z(a);b&&("keyup"==a.type&&y===b?y=!1:k.handleKey(b,F(a),a))}function m(a,g,t,f){function h(c){return function(){x=c;++p[a];clearTimeout(q);q=setTimeout(b,1E3)}}function l(g){c(t,g,a);"keyup"!==f&&(y=z(g));setTimeout(b,10)}for(var d=p[a]=0;d<g.length;++d){var e=d+1===g.length?l:h(f||
A(g[d+1]).action);n(g[d],e,f,a,d)}}function n(a,b,c,f,d){k._directMap[a+":"+c]=b;a=a.replace(/\s+/g," ");var e=a.split(" ");1<e.length?m(a,e,b,c):(c=A(a,c),k._callbacks[c.key]=k._callbacks[c.key]||[],g(c.key,c.modifiers,{type:c.action},f,a,d),k._callbacks[c.key][f?"unshift":"push"]({callback:b,modifiers:c.modifiers,action:c.action,seq:f,level:d,combo:a}))}var k=this;a=a||u;if(!(k instanceof d))return new d(a);k.target=a;k._callbacks={};k._directMap={};var p={},q,y=!1,r=!1,x=!1;k._handleKey=function(a,
d,e){var f=g(a,d,e),h;d={};var k=0,l=!1;for(h=0;h<f.length;++h)f[h].seq&&(k=Math.max(k,f[h].level));for(h=0;h<f.length;++h)f[h].seq?f[h].level==k&&(l=!0,d[f[h].seq]=1,c(f[h].callback,e,f[h].combo,f[h].seq)):l||c(f[h].callback,e,f[h].combo);f="keypress"==e.type&&r;e.type!=x||w(a)||f||b(d);r=l&&"keydown"==e.type};k._bindMultiple=function(a,b,c){for(var d=0;d<a.length;++d)n(a[d],b,c)};v(a,"keypress",e);v(a,"keydown",e);v(a,"keyup",e)}if(q){var n={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",
18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},r={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},C={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},B={option:"alt",command:"meta","return":"enter",
escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p;for(c=1;20>c;++c)n[111+c]="f"+c;for(c=0;9>=c;++c)n[c+96]=c.toString();d.prototype.bind=function(a,b,c){a=a instanceof Array?a:[a];this._bindMultiple.call(this,a,b,c);return this};d.prototype.unbind=function(a,b){return this.bind.call(this,a,function(){},b)};d.prototype.trigger=function(a,b){if(this._directMap[a+":"+b])this._directMap[a+":"+b]({},a);return this};d.prototype.reset=function(){this._callbacks={};
this._directMap={};return this};d.prototype.stopCallback=function(a,b){if(-1<(" "+b.className+" ").indexOf(" mousetrap ")||D(b,this.target))return!1;if("composedPath"in a&&"function"===typeof a.composedPath){var c=a.composedPath()[0];c!==a.target&&(b=c)}return"INPUT"==b.tagName||"SELECT"==b.tagName||"TEXTAREA"==b.tagName||b.isContentEditable};d.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)};d.addKeycodes=function(a){for(var b in a)a.hasOwnProperty(b)&&(n[b]=a[b]);p=null};
d.init=function(){var a=d(u),b;for(b in a)"_"!==b.charAt(0)&&(d[b]=function(b){return function(){return a[b].apply(a,arguments)}}(b))};d.init();q.Mousetrap=d;"undefined"!==typeof module&&module.exports&&(module.exports=d);"function"===typeof define&&define.amd&&define(function(){return d})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null);

// 嵌入了mousetrap代码结束



_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框





// 快捷键定义区
_EsdDynamicTransformationScript.navBlock.key = {};
/*
 * 区域跳转JS 插件支持：jquery、mousetrap 功能：为避免与浏览器快捷键冲突默认全部采用3+1组合键（alt+ctrl+shift）+自定义键
 * 头部区域跳转 alt+ctrl+shift+T(top) 导航区域跳转 alt+ctrl+shift+N(nav) 主要区域跳转
 * alt+ctrl+shift+M(main) 左侧区域跳转 alt+ctrl+shift+L(left) 右侧区域跳转
 * alt+ctrl+shift+R(right) 正文区域跳转 alt+ctrl+shift+C(content) 底部区域跳转
 * alt+ctrl+shift+F(footer) 栏目导航正跳转 alt+ctrl+shift+D(up) 栏目导航逆跳转
 * alt+ctrl+shift+U(down);
 */
_EsdDynamicTransformationScript.navBlock.key.top = "alt+ctrl+shift+t"; // (top)
_EsdDynamicTransformationScript.navBlock.key.nav = "alt+ctrl+shift+n"; // (nav)
_EsdDynamicTransformationScript.navBlock.key.main = "alt+ctrl+shift+m"; // (main)
_EsdDynamicTransformationScript.navBlock.key.left = "alt+ctrl+shift+l"; // (left)
_EsdDynamicTransformationScript.navBlock.key.right = "alt+ctrl+shift+r"; // (right)
_EsdDynamicTransformationScript.navBlock.key.content = "alt+ctrl+shift+c"; // (content)
_EsdDynamicTransformationScript.navBlock.key.footer = "alt+ctrl+shift+j"; // (footer)
_EsdDynamicTransformationScript.navBlock.key.down = "alt+ctrl+shift+d"; // (down)
_EsdDynamicTransformationScript.navBlock.key.up = "alt+ctrl+shift+u"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function (i) {
    $(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function (index, el) {
        if (i == index) {
            _EsdDynamicTransformationScript.navBlock.debugView(el);
            $(el).find("a").each(function (i, e) {
                if (i == 0) {
                    $(e).focus();
                }
            });

        }
    });
}
// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function (index, ehx) {
    _EsdDynamicTransformationScript.navBlock.maxIndex++;
});

// 前进
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.down, function () { // down
    if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
        _EsdDynamicTransformationScript.navBlock.sIndex++;
        _EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
    }
    return false;
});
// 后退
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.up, function () { // up
    if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
        _EsdDynamicTransformationScript.navBlock.sIndex--;
        _EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
    }
    return false;
});

// 快捷键功能区域
// 跳转到头部
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.top, function () {
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
    return false;
});
// 跳转到导航
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.nav, function () {
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
    return false;
});
// 跳转到底部
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.footer, function () {
// alert(_EsdDynamicTransformationScript.navBlock.selector.footer);
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
    return false;
});
// 跳转到主要区域
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.main, function () {
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
    return false;
});
// 跳转到左区域
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.left, function () {
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
    return false;
});

// 跳转到右区域
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.right, function () {
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
    return false;
});
// 跳转到正文区域
Mousetrap.bind(_EsdDynamicTransformationScript.navBlock.key.content, function () {
    _EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
    return false;
});

// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function (id) {
    if ($(id).length > 0) {
        _EsdDynamicTransformationScript.navBlock.debugView(id);
        $(id).find("a").each(function (index) {
            if (index == 0) {
                $(this).focus();
            }
        });
    } else {}

}
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
    // 如果开启调试模式，添加调试绘制矩形边线
    $("body").append("<div id='show_top' class='lineshow'></div>");
    $("body").append("<div id='show_bottom' class='lineshow'></div>");
    $("body").append("<div id='show_left' class='lineshow'></div>");
    $("body").append("<div id='show_right' class='lineshow'></div>");
    $(".lineshow").css({
        "display": "none"
    });
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function (e) {
    if (_EsdDynamicTransformationScript.navBlock.debug == true) {
        var x = $(e).offset();
        var w = parseInt($(e).css("width")); ;
        var h = parseInt($(e).css("height"));
        $("#show_top").css({
            "z-index": "9999",
            "border": "red 2px solid",
            "position": "absolute",
            "top": x.top,
            "left": x.left,
            "width": w,
            "height": "0px"
        });
        $("#show_bottom").css({
            "z-index": "9999",
            "border": "red 2px solid",
            "position": "absolute",
            "top": x.top + h,
            "left": x.left,
            "width": w,
            "height": "0px"
        });
        $("#show_left").css({
            "z-index": "9999",
            "border": "red 2px solid",
            "position": "absolute",
            "top": x.top,
            "left": x.left,
            "width": "0px",
            "height": h
        });
        $("#show_right").css({
            "z-index": "9999",
            "border": "red 2px solid",
            "position": "absolute",
            "top": x.top,
            "left": x.left + w,
            "width": "0px",
            "height": h
        });
        $("html,body").animate({
            scrollTop: $("#show_top").offset().top
        }, 200);
        $(".lineshow").css({
            "display": "block"
        });
    }
}

	
	
	
	
};

if (window.jQuery == undefined) {
	
	var esdJquery = document.createElement("script");
	esdJquery.setAttribute("type", "text/javascript");
	esdJquery.setAttribute("src", window.location.origin + "/wza/bwscript/jquery-1.12.4.min.js");
	esdJquery.setAttribute("charset", "utf-8");
	esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
	esdJquery.onload = function () {
		_EsdDynamicTransformationFunction(jQuery);
	};
	document.head.appendChild(esdJquery);
	
} else {
	
	_EsdDynamicTransformationFunction(jQuery);
}
